package cn.edu.usts.sbmpserviceclient;


import cn.edu.usts.sbmpservice.service.User;
import cn.edu.usts.sbmpservice.service.UserService;
import cn.edu.usts.sbmpservice.service.UserService_Service;
import org.springframework.boot.autoconfigure.security.SecurityProperties;

import java.util.Scanner;

public class app {
    public static void main(String[] args) {

        //创建服务访问点集合的对象
        UserService_Service has = new UserService_Service();
        //获取服务实现类
        //根据服务访问点的集合中的服务访问点的绑定对象来获得绑定的服务类
        UserService soap = has.getUserServiceImplPort();

        String hello = soap.sayHello("1", "hello");
        System.out.println(hello);
        //调用服务
        User user = soap.queryUser(2);
        System.out.println(user.toString());

//        Scanner sc  = new Scanner(System.in);
//        int id = sc.nextInt();
//        User user1 = new User(id,sc.next());
//        soap.addUser(user1);
//        System.out.println(soap.queryUser(id));

        soap.disposeData("2022-5-5| 01 | 01 | 01 |10@2022-5-9|02|02|02|20");

// 2022-5-5 01 01 01







    }
}
